package cn.edu.ujn.multiple.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.edu.ujn.multiple.dao.BaseDictMapper;
import cn.edu.ujn.multiple.model.BaseDict;
import cn.edu.ujn.multiple.service.IBaseDictService;
@Service("baseDictService")
@Transactional
public class BaseDictServiceImpl implements IBaseDictService {

	@Autowired
	private BaseDictMapper baseDictDao;
	
	@Override
	public BaseDict findByPrimaryKey(Integer dictId) {
		// TODO Auto-generated method stub
		BaseDict dict = baseDictDao.selectByPrimaryKey(dictId.toString());
		return dict;
	}

	@Override
	public List<BaseDict> findBaseDictByTypeCode(String typeCode) {
		// TODO Auto-generated method stub
		return baseDictDao.selectBaseDictByTypeCode(typeCode);
	}

}
